import Request from './request.js';

const API = {
	collectCategoryApi: '/app/bus/user/collect/category',
	userCollectApi: '/app/bus/user/collect',
};



// 个人收藏分类
export const collectCategoryApi = (params) => Request.get(API.collectCategoryApi, {
	params
});

// 我的收藏
export const userCollectApi = (params) => {
	// 校验参数（可选，若后端严格校验，前端可提前简单校验）

	return Request.get(API.userCollectApi, {
		params,
	});
};